import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule , ReactiveFormsModule} from '@angular/forms';
import {  PaginatorModule } from 'primeng/paginator';
import {  TableModule } from 'primeng/table';
import {  DialogModule } from 'primeng/dialog';
import {  ButtonModule } from 'primeng/button';
import {  PanelModule } from 'primeng/panel';
import {InputTextModule} from 'primeng/inputtext';
import {FileUploadModule} from 'primeng/fileupload';
import { EchartDirective } from '../directive/echart.directive';

const PRIMENG_MODULES = [
  TableModule,
  DialogModule,
  InputTextModule,
  ButtonModule,
  FileUploadModule,
  PanelModule,
  PaginatorModule
];
const MODULES = [
  ...PRIMENG_MODULES,
  CommonModule,
  ReactiveFormsModule,
  FormsModule,
];
const DECLARATIONS = [
  EchartDirective
];
const EXPORT_COMPONENTS = [
  EchartDirective
];
@NgModule({
  declarations: DECLARATIONS,
  exports: [...MODULES, EXPORT_COMPONENTS]
})
export class SharedModule { }
